const pager = {
	params: {
		pageIndex: 1,
		pageSize: 10,
	},
	pageTotal: 100,
	pageSizeArr: [10, 20, 30, 40]
};
// const path = ['销售管理', '现货订单', '现货订单详情'];


const tabFormInline = [];
const tableFormInline = [];
const tableFormUserMsg = [];
const tab1TableHeader = [{
		prop: 'customNumber',
		label: '定制编码',
		width: '150',
		show: true
	},
	{
		prop: 'batchNo',
		label: '条码',
		width: '150',
		show: true
	},
	{
		prop: 'salesClassification',
		label: '销售分类',
		width: '',
		show: true
	},
	{
		prop: 'description',
		label: '描述',
		width: '200',
		show: true
	},
	{
		prop: 'expectDate',
		label: '预计交期',
		width: '160',
		show: true
	},
	{
		prop: 'totalPrice',
		label: '商品应付总价格',
		width: '150',
		show: true
	},
	{
		prop: 'customServiceFee',
		label: '定制服务费',
		width: '150',
		show: true
	},
	{
		prop: 'goodsPrice',
		label: '商品金额',
		width: '',
		show: true
	},
	{
		prop: 'location',
		label: '商品所在仓',
		width: '120',
		show: true
	},
	{
		prop: 'count',
		label: '数量',
		width: '',
		show: true
	},
	{
		prop: 'remarks',
		label: '备注',
		width: '',
		show: true
	},

]
const tab2TableHeader1 = [{
		prop: 'giftNumber',
		label: '附赠品编号',
		width: '',
		show: true
	},
	{
		prop: 'giftName',
		label: '附赠品名称',
		width: '',
		show: true
	},
	{
		prop: 'createTime',
		label: '添加赠品时间',
		width: '',
		show: true
	},
	{
		prop: 'count',
		label: '数量',
		width: '',
		show: true
	}
]
const tab2TableHeader2 = [{
		prop: 'recipientName',
		label: '收件人姓名',
		width: '',
		show: true
	},
	{
		prop: 'recipientPhone',
		label: '联系电话',
		width: '',
		show: true
	},
	{
		prop: 'detailedAddress',
		label: '收件人地址',
		width: '',
		show: true
	},
]

const tab3TableHeader1 = [
	// {
	// 	prop:'paymentMethod',
	// 	label:'支付方式',
	// 	width:'',
	// 	show:true
	// },
	{
		prop: 'payMoney',
		label: '支付金额',
		width: '',
		show: true
	},
	{
		prop: 'createTime',
		label: '支付时间',
		width: '160',
		show: true
	},
	/*{
		prop:'posting',
		label:'sap过账',
		width:'',
		show:true
	},*/
	{
		prop: 'createBy',
		label: '操作人',
		width: '',
		show: true
	},
	// {
	// 	prop:'status',
	// 	label:'财务确认',
	// 	width:'',
	// 	show:true
	// },
	{
		prop: 'account',
		label: '收款账户',
		width: '',
		show: true
	},
]
const tab3TableHeader2 = [{
		prop: 'serialNumber',
		label: '退款流水号',
		width: '',
		show: true
	},
	{
		prop: 'account',
		label: '退款账号',
		width: '',
		show: true
	},
	{
		prop: 'bankDeposit',
		label: '开户行',
		width: '',
		show: true
	},
	{
		prop: 'bankName',
		label: '开户人姓名',
		width: '',
		show: true
	},
	{
		prop: 'payMoney',
		label: '退款金额',
		width: '',
		show: true
	},
	{
		prop: 'payTime',
		label: '退款操作时间',
		width: '',
		show: true
	},
	{
		prop: 'createBy',
		label: '操作人',
		width: '',
		show: true
	},
	{
		prop: 'status',
		label: '财务确认',
		width: '',
		show: true
	}
]
const tab5TableHeader = [{
		prop: 'createTime',
		label: '接待时间',
		width: '',
		show: true
	},
	{
		prop: 'content',
		label: '接待内容',
		width: '',
		show: true
	},
	{
		prop: 'supportStaff',
		label: '接待人员',
		width: '',
		show: true
	}

]
const tab6TableHeader = [{
		prop: 'saleNumber',
		label: '补购订单编号',
		width: '',
		show: true
	},
	{
		prop: 'goodsName',
		label: '补购商品',
		width: '',
		show: true
	},
	{
		prop: 'count',
		label: '数量',
		width: '',
		show: true
	},
	{
		prop: 'createTime',
		label: '下单时间',
		width: '',
		show: true
	},
	{
		prop: 'orderStatus',
		label: '订单状态',
		width: '',
		show: true
	},
	{
		prop: 'createBy',
		label: '下单人',
		width: '',
		show: true
	},
]
const tab7TableHeader = [{
		prop: 'afterSaleType',
		label: '售中类型',
		width: '',
		show: true
	},
	{
		prop: 'aftersaleStatus',
		label: '售中状态',
		width: '',
		show: true
	},
	{
		prop: 'payAmount',
		label: '退款金额',
		width: '',
		show: true
	},
	{
		prop: 'createTime',
		label: '申请售中时间',
		width: '',
		show: true
	},
	{
		prop: 'createBy',
		label: '下单人',
		width: '',
		show: true
	},
	{
		prop: 'checkTime',
		label: '审核时间',
		width: '',
		show: true
	},
]
const tab8TableHeader = [{
		prop: 'afterSaleType',
		label: '售后类型',
		width: '',
		show: true
	},
	{
		prop: 'aftersaleStatus',
		label: '售后状态',
		width: '',
		show: true
	},
	{
		prop: 'payAmount',
		label: '退款金额',
		width: '',
		show: true
	},
	{
		prop: 'createBy',
		label: '下单人',
		width: '',
		show: true
	},
	{
		prop: 'createTime',
		label: '申请售后时间',
		width: '',
		show: true
	},
	{
		prop: 'checkTime',
		label: '审核时间',
		width: '',
		show: true
	},
]
const tab1ChangeHeader = [{
		prop: 'customNumber',
		label: '定制编号',
		width: '',
		show: true
	},
	{
		prop: 'barCode',
		label: '条码',
		width: '',
		show: true
	},
	{
		prop: 'salesOfClassification',
		label: '销售分类',
		width: '',
		show: true
	},
	{
		prop: 'description',
		label: '描述',
		width: '',
		show: true
	},
	{
		prop: 'expectDate',
		label: '预计交期',
		width: '',
		show: true
	},
	{
		prop: 'totalPrice',
		label: '商品应付总价格',
		width: '',
		show: true
	},
	{
		prop: 'customServiceFee',
		label: '定制服务费',
		width: '',
		show: true
	},
	{
		prop: 'goodsPrice',
		label: '商品金额',
		width: '',
		show: true
	},
	{
		prop: 'priceDifferences',
		label: '变更差价',
		width: '',
		show: true
	},
	{
		prop: 'goodsWarehouse',
		label: '商品所在仓',
		width: '',
		show: true
	},
	{
		prop: 'count',
		label: '数量',
		width: '',
		show: true
	},
	{
		prop: 'isAddLogo',
		label: '外圈是否加DR LOGO',
		width: '',
		show: true
	},
	{
		prop: 'isHigh',
		label: '是否允许高配',
		width: '',
		show: true
	},
	{
		prop: 'lettering',
		label: '刻字',
		width: '',
		show: true
	},
	{
		prop: 'remark',
		label: '售中状态',
		width: '',
		show: true
	},
]
const refundStep = {
	activeStep: 0,
	step: []
};
//原因
const addGiftDialogit = {
	'reason': ''
}
const filterOption1 = {
	items: [{
			label: "赠品名称",
			type: "input",
			data: undefined,
			placeholder: "请输入赠品名称",
			value: undefined,
			key: "commodityCode"
		},
		{
			label: "商品编码",
			type: "input",
			data: undefined,
			placeholder: "请输入商品编码",
			value: undefined,
			key: "tradeName"
		},
		{
			label: "所属仓库",
			type: "dropdown",
			data: [{
					label: "深圳世界之窗现货仓",
					value: "1"
				},
				{
					label: "深圳世界之窗现货仓2",
					value: "2"
				}
			],
			placeholder: "请选择",
			value: undefined,
			key: "a3"
		},
	],
	btnGroup: [{
			label: "查询",
			type: "search"
		},
		{
			label: "清空",
			type: "clear"
		}
	],
}
//赠品表头
const tab1ChangeHeader2 = [{
		prop: 'commodityCode',
		label: '商品编码',
		width: '',
	},
	{
		prop: 'nameOfCommodity',
		label: '赠品名称',
		width: '',
	},
	{
		prop: 'position',
		label: '所属仓库',
		width: '',
	},
	{
		prop: 'store',
		label: '可用库存',
		width: '',
	},
]
//用户 收货地址
const userAddressMsg = {
	messagePhone: '',
	isNewAddress: true,
	name: 'xumeng',
	phone: '',
	addressType: 1,
	detailedAddress: '',
	addressArea: []
}
//用户 自提地址
const userSelfLift = {
	takeGoodsShopCity: '',
	takeGoodsShop: '',
	time: '',
}
const options = []
const props = {
	label: 'label',
	value: 'code',
	children: 'children'
}
//地址
const adressDialogit = {
	'id': '',
	'recipientName': '',
	'recipientPhone': '',
	'detailedAddress': ''
}
const payInfo = {}
let Model = {
	data() {
		return {
			Model: {
				// path,
				pager,
				payInfo, //支付信息
				tableFormUserMsg,
				tab1TableData: [],
				tableData: [{
					deliveryNo: 1
				}],
				tab1TableHeader,
				tab2TableHeader1,
				tab2TableHeader2,
				tab3TableHeader1,
				tab3TableHeader2,
				tab5TableHeader,
				tab6TableHeader,
				tab7TableHeader,
				tab1ChangeHeader,
				tab8TableHeader,
				tab1ChangeTableData: [],
				addGiftDialog: false,
				totleGoodCount:'',
				totleGoodfee:'',
				tableDataDialog: [], //添加赠品弹窗的tableData
				tab1ChangeHeader2,
				addGiftDialogit, //添加赠品原因
				filterOption1, //添加赠品 
				addGiftsSelectData: [], //添加赠品 已选中的数组
				adressDialog: false,
				adressDialogit, //赠品地址
				TableSelectData: [],
				dialogFormVisible: false, //添加支付弹窗
				dialogForm: {}, //			//支付
				orderAfterDialog: false,
				orderChangeDialog: false,
				onDialogAddress: false, //收货地址弹窗
				onDialogself: false, //自提弹窗
				userSelfLift,
				userAddressMsg, //新增的收货地址信息
				checkedAddressOpt: {},
				options,
				props,
				cityStore: [],
				activeTab: '1',
				afterType: '1',
				tipsDeliveryType: false, //快递显示提示语
				detailDialogFlag: false,
				tabFormInline,
				tableFormInline,
				refundStep,
				specialReason: '',
				editDialogFlag: false,
				editDialogFormData: [],
				detailTableFrom: {
					src: require('@/assets/img/icon_unfold.png'),
					flag: true
				},
				detailTableFrom2: {
					src: require('@/assets/img/icon_unfold.png'),
					flag: true
				},
				detailTableFrom3: {
					src: require('@/assets/img/icon_unfold.png'),
					flag: true
				},
				detailTableFrom4: {
					src: require('@/assets/img/icon_unfold.png'),
					flag: true
				},
				tab1TableDetail1: {
					src: require('@/assets/img/icon_unfold.png'),
					flag: true
				},
				tab2TableDetail1: {
					src: require('@/assets/img/icon_unfold.png'),
					flag: true
				},
				tab2TableDetail2: {
					src: require('@/assets/img/icon_unfold.png'),
					flag: true
				},
				tab3TableDetail1: {
					src: require('@/assets/img/icon_unfold.png'),
					flag: true
				},
				tab3TableDetail2: {
					src: require('@/assets/img/icon_unfold.png'),
					flag: true
				},
				tab4TableDetail1: {
					src: require('@/assets/img/icon_unfold.png'),
					flag: true
				},

			}
		}
	}
}
export default Model;
